package org.scirp.ijmis.service.journal.impl;

import java.util.List;

import org.scirp.ijmis.dao.journal.IEmailServerDAO;
import org.scirp.ijmis.po.journal.EmailServer;
import org.scirp.ijmis.service.journal.IEmailServerService;

public class EmailServerServiceImpl implements IEmailServerService {

	private IEmailServerDAO emailServerDAO;

	public void setEmailServerDAO(IEmailServerDAO emailServerDAO) {
		this.emailServerDAO = emailServerDAO;
	}

	public IEmailServerDAO getEmailServerDAO() {
		return emailServerDAO;
	}

	public List<EmailServer> selectAll() {
		return emailServerDAO.selectAll();
	}

	public EmailServer selectById(long id) {
		return emailServerDAO.selectById(id);
	}

	public long addEmailServer(EmailServer emailServer) {
		return emailServerDAO.saveEmailServer(emailServer);
	}

	public EmailServer deleteEmailServer(EmailServer emailServer) {
		return emailServerDAO.deleteEmailServer(emailServer);
	}

	public boolean updateEmailServer(EmailServer emailServer) {
		return emailServerDAO.updateEmailServer(emailServer);
	}

	public EmailServer selectByJournalId(Long journalId) {
		return emailServerDAO.selectByJournalId(journalId);
	}
}
